fix(es/types): add new options types#11683
Conversation
|
There was a problem hiding this comment.
Pull request overview
Updates the public TypeScript types for SWC’s terser-compatible minifier config so consumers can use newly supported unsafe hoisting options without type errors.
Changes:
- Add
unsafe_hoist_static_method_alias?: booleantoTerserCompressOptions. - Add
unsafe_hoist_global_objects_alias?: booleantoTerserCompressOptions.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Binary Sizes
Commit: 1d776cb |
Description:
#11493 lands
unsafe_hoist_static_method_aliasandunsafe_hoist_global_objects_aliasoptions, but@swc/typesis not updated.The PR fixes that.
BREAKING CHANGE:
N/A
Related issue (if exists):
#9741
#11493